<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>低代码接口开发平台</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link rel="stylesheet" href="bootstrap.min.css">
    <style>
        html,
        body,
        .app-wrapper {
            position: relative;
            width: 100%;
            height: calc(100vh - 66px);
            margin: 0;
            padding: 0;
        }

        i {
            font-style: normal;
            cursor: pointer;
        }

        .link-active {
            background-color: #1890ff !important;
        }

        .nav-link {
            width: 100px;
            color: #fff !important;
            text-align: center;
        }
    </style>
</head>

<body>
    <nav class="navbar sticky-top navbar-expand " style="background-color:rgb(0, 21, 41);font-size: 18px;">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" style="color: #fff;" href="index.html">低代码接口开发平台
            </a>
            </div>
            <div style="width: 100px;"></div>
            <ul class="navbar-nav me-auto ">
                <li class="nav-item"><i class="nav-link link-active" href="interface/index.html">接口开发</i></li>
                <li class="nav-item"><i class="nav-link" href="settings/index.html">全局设置</i></li>
                </li>
            </ul>
        </div>
    </nav>
    <div class="app-wrapper">
        <iframe id="curPage" src="interface/index.html" frameborder="no" style="width: 100%; height: 100%;"></iframe>
    </div>
   
    <script>
        var links = document.querySelectorAll(".nav-link");
        links.forEach(link => {
            link.onclick = () => {
                document.querySelector(".link-active").classList.remove("link-active");
                document.querySelector("#curPage").src = link.attributes.href.value;
                link.classList.toggle("link-active");
            }
        });
    </script>
</body>

</html>
